import request from '@/utils/request'

//验证码
export const getCaptcha = () => request.get({
	url: '/captchaImage?' + new Date().getTime(),
	loading: 'false'
})
export const login = (data) => request.post({
	url: '/frontLogin',
	data
})
export const register = (data) => request.post({
	url: '/system/user/addFront',
	data
})
export const getInfo=()=>request.get({
	url:'/getInfo'
})
export const profile=(data)=>request.put({
	url:'/system/user/profile',
	data
})
export const updatePwd=(data)=>request.put({
	url:'/system/user/profile/updatePwd',
	data
})